package com.richmond.gui;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * User: csavard
 * Date: 12-08-07
 * Time: 09:47
 */
public class AccountUtilApp extends Application {
	@Override
	public void start(Stage primaryStage) throws Exception {
		primaryStage.setTitle("Accounting Utilities");
		URL formUrl = getClass().getClassLoader().getResource("com/richmond/gui/AccountUtilApp.fxml");
		URL cssUrl = getClass().getClassLoader().getResource("com/richmond/gui/AccountUtilApp.css");

		Parent root = FXMLLoader.load(formUrl);
		root.getStylesheets().add(cssUrl.toString());
		primaryStage.setScene(new Scene(root));
		primaryStage.show();
	}

    @Override
    public void stop() throws Exception {
        super.stop();
        System.exit(0);
    }

    public static void main(String arg[]) {
		launch(arg);
	}
}
